﻿using MDT.LifeSewagePlatform.Conmmon;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/*********************************************************
 * 命名空间 MDT.LifeSewagePlatform.Entity
 * 接口名称 AlaramRuleEntity
 * 开发人员：-nhy
 * 创建时间：2022/3/31 11:19:10
 * 描述说明：
 * 更改历史：
 * 
 * *******************************************************/
namespace MDT.LifeSewagePlatform.Entity
{
    /// <summary>
    /// 默认模板
    /// </summary>
    [Table("AlaramRuleTable")]
    public class AlaramRuleEntity:HandleEntity
    {
        public AlaramRuleEntity()
        {

        }
        public AlaramRuleEntity(float standard,string descriptionInfo,Byte alaramType,Byte comparePattern,string displayName)
        {
            Standard = standard;
            DescriptionInfo= descriptionInfo;
            AlaramType= alaramType;
            ComparePattern= comparePattern;
            DisplayName= displayName;
        }
        /// <summary>
        /// 基准百分比
        /// </summary>
        public float Standard { get; set; }

        /// <summary>
        /// 描述信息
        /// </summary>
        public string DescriptionInfo { get; set; }
        /// <summary>
        /// 警告类型
        /// </summary>
        public Byte AlaramType { get; set; }
        /// <summary>
        /// 比较方式 --0与本期折算总量对比 1-各个毒品对比 2-
        /// </summary>
        public Byte ComparePattern { get; set; }
        /// <summary>
        /// 规则的名称
        /// </summary>
        public string DisplayName { get; set; }
    }
}